import {createRouter, createWebHistory} from 'vue-router'
import LoginView from "@/views/login/LoginView.vue";
import Layout from "@/views/layout/FrameWork.vue";
import Center from "@/views/page/Center.vue";

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            component: LoginView
        },
        {
            path: '/home',
            component: Layout,
            children: [
                {
                    path: 'center',
                    component: () => import('@/views/page/Center.vue')
                },
                {
                    path: 'test',
                    component: () => import('@/views/Test.vue')
                },
                {
                    path: 'login',
                    component: LoginView
                }
            ]
        }
    ]
})

export default router
